import 'package:flutter/material.dart';
import 'gradientButton.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      home: GradientButtonRoute(),
    );
  }
}

class GradientButtonRoute extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(),
      body: Container(
        // color: Colors.black,
        child: Column(
          children: <Widget>[
            GradientButton(
              child: Text('Submit'),
              colors: [Colors.orange, Colors.red],
              height: 50,
              onTap: () {},
            ),
            GradientButton(
              child: Text('Submit'),
              colors: [Colors.lightGreen, Colors.green[700]],
              height: 50,
              onTap: () {},
            ),
            GradientButton(
              child: Text('Submit'),
              colors: [Colors.lightBlue[300], Colors.blueAccent],
              height: 50,
              onTap: () {},
            ),
            GradientButton(
              child: Text('Submit'),
              colors: [Colors.black, Colors.white],
              height: 50,
              onTap: () {},
            ),
            GradientButton(
              child: Text('Submit'),
              colors: [Colors.teal, Colors.red],
              height: 50,
              onTap: () {},
            ),
          ],
        ),
      ),
    );
  }

}
